//
//  CoreDataBaseProtocol.h
//  CoreDataDemo
//
//  Created by liuxiang on 2018/1/9.
//  Copyright © 2018年 liuxiang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@protocol CoreDataBaseProtocol <NSObject>

// 定义基本增删改查
- (BOOL) excuteInsertWithObjects:(NSArray *) objects;

- (BOOL) excuteDeleteWithObjects:(NSArray *) objects;

- (BOOL) excuteUpdateWithObjects:(NSArray *) objects;

- (nullable NSArray<NSManagedObject *> *) excuteQueryWithEntityName:(NSString *)entityName condition:(NSString *)predicateString limitCount:(NSUInteger) limitCount sortKeys:(NSArray *)sortKeys ascending:(BOOL)ascending;

@end
